home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr15 / gifres10.zip / GIFRES.DOC < prev    next >
Text File  |  1993-05-01  |  3KB  |  75 lines

  1.  
  2.  
  3.                                >> FREEWARE <<
  4.  
  5.  
  6.                   GIF RESolution utility (C)1993 R.Janorkar
  7.                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8.                                           v1.00 release date 03/04/93
  9.  
  10.         What is GIFRES?
  11.         ~~~~~~~~~~~~~~~
  12.         GIFRES is a simple utility that checks the header of GIF image
  13.         files and returns a DOS ERRORLEVEL indicating:
  14.  
  15.         ERRORLEVEL 0 = GIF image is 640x480 or better
  16.         ERRORLEVEL 1 = GIF image is under 640x480
  17.         ERRORLEVEL 2 = Not a GIF file!
  18.         ERRORLEVEL 255 = File not found, or read error.
  19.  
  20.         This little utility can be run in upload scan batch files on
  21.         Bulletin Board Systems, to reject substandard GIF uploads.
  22.  
  23.         GIFRES is Freeware, no payment to the author is required for
  24.         use. The assembler source code has also been included for those
  25.         who wish to make modifications to the code. The author retains
  26.         all rights to the source code, though you are free to modify the
  27.         source code for your own use.
  28.  
  29.         This program and source code is provided with NO warrantees,
  30.         expressed or implied. Use it at your own risk. The author of
  31.         this program will NOT be liable for any damages, direct or
  32.         indirect, arising from the ability or disability to use this
  33.         program. The use of this program on your computer system
  34.         indicates your acceptance of these disclaimers.
  35.  
  36.  
  37.         Technical junk
  38.         ~~~~~~~~~~~~~~
  39.         The GIF file structure is as follows:
  40.  
  41.                  7 6 5 4   3 2 1 0 (individual bits)
  42.                  - - - -   - - - -
  43.         Byte 0 | 0 1 0 0   0 1 1 1 = 47h = "G"
  44.         Byte 1 | 0 1 0 0   1 0 0 1 = 49h = "I"
  45.         Byte 2 | 0 1 0 0   0 1 1 0 = 46h = "F"
  46.         Byte 3 |                     <ignored>
  47.         Byte 4 |                     <ignored>
  48.         Byte 5 |                     <ignored>
  49.         Byte 6 | L L L L   H H H H = Width LSB MSB
  50.         Byte 7 | L L L L   H H H H = Height LSB MSB
  51.  
  52.         GIFRES first check the first three bytes of the file for the
  53.         signature "GIF", if this is not found it returns ERRORLEVEL 2
  54.         (not a GIF file). It then checks the image width, comparing it
  55.         against 640. If the image is less than 640 pixels, it returns
  56.         ERRORLEVEL 1 (less than 640x480). If the width is acceptable, it
  57.         checks the image height against 480 pixels. If the height is
  58.         less it returns ERRORLEVEL 1 (less than 640x480). Otherwise it
  59.         returns ERRORLEVEL 0 indicating the image is 640x480 or higher.
  60.  
  61.         GIFRES was compiled with MicroSoft Macro Assembler (MASM) v5.1
  62.         and linked with MicroSoft Linker v5.13.
  63.  
  64.         Comments, criticism and feedback welcomed. You can contact the
  65.         author via snail mail at: Ron Janorkar
  66.                                   651 Richmond Road,
  67.                                   Staten Island, NY 10304-2409
  68.         or at the support BBS (718) 876-0337 @9600 v.32
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.